FROM anapsix/alpine-java:8_server-jre_unlimited

MAINTAINER mayiread

ENV TZ=Asia/Shanghai

RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN mkdir -p /mayiread

WORKDIR /mayiread

EXPOSE 19006

ADD ./target/wecard-v1.jar ./

#ADD ./tmp/apiclient_cert.p12 /tmp/

#ADD ./tmp/apiclient_key.pem /tmp/

#ADD ./tmp/apiclient_cert.pem /tmp/

CMD sleep 10;java -Djava.security.egd=file:/dev/./urandom -Xms512m -Xmx1024m -jar wecard-v1.jar
